<template>
  <div id="app">
    <!-- 设置顶部导航栏 -->
    <mt-header title="搜 索 系 统">
      <mt-button slot="left">
        <img
          src="../../assets/images/hospital.png"
          height="30"
          width="30"
          slot="icon"
          class="headerImg"
        />
      </mt-button>
      <mt-button icon="more" slot="right"></mt-button>
    </mt-header>

    <!-- 内容区域 -->
    <div class="content">
      <div class="inner" @click="goBedSearch">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-sousuo"></use>
        </svg>
        <span class="innerTxt">床位查询</span>
        <span class="txtItems">></span>
      </div>
      <div class="inner" @click="goDrgub">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-danjushoufei"></use>
        </svg>
        <span class="innerTxt">药品价格查询</span>
        <span class="txtItems">></span>
      </div>
      <div class="inner" @click="goDiagnostic">
        <svg class="icon inner3" aria-hidden="true">
          <use xlink:href="#icon-binganfuyinbeifen"></use>
        </svg>
        <span class="innerTxt">诊疗项目查询</span>
        <span class="txtItems">></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Search",

  data() {
    return {
      searchTxt: "ss",
    };
  },

  mounted() {},

  methods: {
    //返回上一页(不固定)
    goBack() {
      console.log(this.$router);
      window.history.back();
    },
    //点击首页
    goHomepage() {
      this.$router.push({
        path: "./index",
      });
    },
    //跳转更多页面
    goMore() {
      this.$router.push({
        path: "./more",
      });
    },
    //跳转个人中心
    goSelf() {
      this.$router.push({
        path: "./self",
      });
    },
    //跳转床位查询
    goBedSearch() {
      this.$router.push({
        path: "./bedSearch",
      });
    },
    //诊疗项目查询
    goDiagnostic() {
      this.$router.push({
        path: "./diagnostic",
      });
    },
    //药品价格查询
    goDrgub() {
      this.$router.push({
        path: "./drugsSearch",
      });
    },
  },
};
</script>

<style lang="less" scoped>
#app /deep/ .mint-header-title{
  overflow: initial;
}
.headerImg {
  margin-top: 5px;
}
.icon {
  width: 45px;
  height: 45px;
}
.content {
  padding-top: 15px;
  background-color: #fff;
  .inner {
    display: flex;
    align-items: center;
    padding: 5px 0;
    margin: 0 15px 5px 15px;
    .inner3 {
      width: 40px;
      height: 40px;
      padding: 3px 0 3px 5px;
    }
  }
  .innerTxt {
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
  }
  .inner:nth-child(1),
  .inner:nth-child(2) {
    border-bottom: 1px solid #ccc;
  }
  .txtItems {
    flex: 1;
    text-align: right;
    font-size: 25px;
  }
}
</style>